<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.ac.cintcm.sh.domain.*,cn.ac.cintcm.sh.service.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String herId = request.getParameter("herId");
HerbService herbService = new HerbService();
AvgDosage avgDosage = herbService.getAvgDosage(herId);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>中药评价剂量</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="fj/tra/js/avgDosage.js"> </script>
  </head>
    <script type="text/javascript">
var herId="";
<%
if(herId != null &&! (herId = herId.trim()).equals("")){
%>
herId =<%=herId %>;
<%
}%>
</script>
  <body>
 <table  border="1" width="100%">
  <tr>
    <td colspan="2"><strong>剂量使用分布图:平均<%=avgDosage.getAvg().getQuantity() %><%=avgDosage.getAvg().getUnit() %> &nbsp;&nbsp;&nbsp;</strong></td>
  </tr>
  <tr>
    <td>最小<%=avgDosage.getMin().getUnit().getQuantity() %><%=avgDosage.getMin().getUnit().getUnit() %> <%=avgDosage.getMin().getName() %></td>
    <td>最大<%=avgDosage.getMax().getUnit().getQuantity() %><%=avgDosage.getMax().getUnit().getUnit() %> <%=avgDosage.getMax().getName() %></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">剂量分布图</div></td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">所在的方剂</div></td>
  </tr>
  <tr>
    <td colspan="2"><div id="gridAvgDosage"></div></td>
  </tr>
</table>
  </body>
</html>
